class smx_cas
{
  require smx_os
  require smx_download
  require smx_java
  file { '/etc/init.d/fxcas':
    ensure => file,
    owner  => root, group => root, mode => 755,
    source => 'puppet:///modules/smx_cas/fxcas',
  }

  service { 'fxcas':
    ensure    => running,
    enable    => true,
    require   => File['/etc/init.d/fxcas'],
    path      => "/etc/init.d",
    start     => "/etc/init.d/fxcas start",
    stop      => "/etc/init.d/fxcas stop",
    subscribe => File['/etc/init.d/fxcas'],
  }
}
